﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Data;

namespace wpf.Nursing.Convert
{
    /// <summary>
    /// 隐藏MutiConvert
    /// </summary>
    public class ExpanderConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string visbility = "＋";
            try
            {
                if (value.ToString().ToUpper() == "TRUE")
                {
                    visbility = "－";
                }
            }
            catch
            {

            }
            return visbility;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
